<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>XXXX后台管理系统 登录</title>
    <script type="text/javascript" src="resources/library/jquery-easyui-1.4.3/jquery.min.js"></script>
</head>
    <style>
    html,body{
    height: 100%;
    width: 100%;
    font-family: "microsoft yahei",sans-serif,"微软雅黑",Arial;
    }
    *{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    }
    .login-vertical-middle{
    height: 100%;
    width: 100%;
    background-color: #1d8bd8;
    background-image: radial-gradient(#30a8e5, #1d8bd8);
    background-image: -webkit-radial-gradient(#30a8e5, #1d8bd8); /* new syntax */
    background-image: -moz-radial-gradient(#30a8e5, #1d8bd8);
    background-image: -webkit-gradient(radial, center center, 0, center center, 620, from(#30a8e5), to(#1d8bd8));
    }
    .login-warp{
    width: 500px;
    height: 480px;
    padding-top: 260px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF;
    text-align: center;
        background: url(resources/images/common/login-logo.png) no-repeat top center;
    background-size: contain;
    }
    .login-warp p{
    margin: 0;
    }
    .login-warp form{
    margin-top: 50px;
    }
    .login-warp form>div{
    position: relative;
    width: 280px;
    margin: auto;
    }
    .login-warp input{
    height: 36px;
    line-height: 36px;
    border: none;
    width: 100%;
    outline: none;
    font-size: 14px;
    padding-left: 70px;
    color: #b6b6b6;
    }
    .login-warp label{
    position: absolute;
    line-height: 36px;
    padding-left: 24px;
    font-size: 14px;
    color: #b6b6b6;
    top: 0;
    left: 0;
    }
    .login-warp button{
    width: 120px;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    background-color: #66d354;
    outline: none;
    border: none;
    color: #FFF;
    margin-top: 25px;
    }
    .login-warp button,.login-warp input{
    border-radius:18px;
    -webkit-border-radius:18px;
    -moz-border-radius:18px;
    -o-border-radius:18px;
    }
    .login-warp button:hover{
    background: #13d33b;
    }
    .login-warp .login-user{
    margin-bottom: 15px;
    }
    .login-error{
    position: absolute;
    top: -30px;
    color: red;
    text-align: center;
    width: 100%;
    }

    </style>
    <body>
    <div class="login-vertical-middle">
        <div class="login-warp">
            <form class="form" method="post" action="">
                <div class="login-user">
                <div id="msg" class="login-error"><%--用户名或密码错误--%>${msg}</div>
                    <label>账户</label>
                    <input type="text" name="username">
                </div>
                <div>
                    <label>密码</label>
                    <input name="password" type="password">
                </div>
                <button type="submit" id="login-button">登录</button>
            </form>
        </div>
    </div>
    </body>
    <script>

        if (window != top) {
            top.location.href = location.href;
        }

        $(function(){
        $('.login-vertical-middle').css('padding-top',($('body').height()/2 - 240)*0.8+'px');
        $(window).resize(function() {
            $('.login-vertical-middle').css('padding-top',($('body').height()/2 - 240)*0.8+'px');
        });
    });

    </script>
</html>

